package org.im.service.message.bean;

public enum MessageUserType {

	//普通用戶
	NORMAL_USER(1),
	
	//系统
	SYSTEM(2),
	
	//群组
	GROUP(3);
	
	int type;
	
	private MessageUserType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public static MessageUserType valueOf(int type) {
		switch (type) {
			case 1 : return NORMAL_USER;
			case 2 : return SYSTEM;
			case 3 : return GROUP;
			default : return NORMAL_USER;
		}
	}
}
